package com.sailfish.springbootdemo.pojo;

/**
 * 返回结果统一
 */
public class Result<T> {
    /**
     * 返回状态码
     */
    private Integer code;
    /**
     * 返回结果中文
     */
    private String msgCn;
    /**
     * 返回结果英文
     */
    private String msgEn;
    /**
     * 返回具体数据
     */
    private T data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsgCn() {
        return msgCn;
    }

    public void setMsgCn(String msgCn) {
        this.msgCn = msgCn;
    }

    public String getMsgEn() {
        return msgEn;
    }

    public void setMsgEn(String msgEn) {
        this.msgEn = msgEn;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
